import React, { Component, PropTypes } from 'react'
import ExpenseDetailAlert from "containers/expense-report/components/expense-detail-alert";

class SlideExpenseReportDetailAlert extends Component {

  static contextTypes = {
    info: PropTypes.object
  };

  render() {
    const { info } = this.context;
    let warningList = JSON.parse(info.warningList || '[]');
    return (
      <div className='slide-expense-report-detail-alert'>
        <ExpenseDetailAlert noPrint={info.printFree} warningList={warningList}/>
      </div>
    )
  }

}

export default SlideExpenseReportDetailAlert;
